package com.newer.util;

import java.util.ArrayList;
import java.util.List;

public class Pager<T> {
    private List<T> data = new ArrayList<T>();
    private Integer pagetSize =5;
    private Integer count ;
    private Integer pagetNo;
    private Integer totalPage;

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public Integer getPagetSize() {
        return pagetSize;
    }

    public void setPagetSize(Integer pagetSize) {
        this.pagetSize = pagetSize;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getPagetNo() {
        return pagetNo;
    }

    public void setPagetNo(Integer pagetNo) {
        this.pagetNo = pagetNo;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    @Override
    public String toString() {
        return  data +
                "\t\t" + pagetSize +
                "\t\t" + count +
                "\t\t" + pagetNo +
                "\t\t" + totalPage ;
    }
}
